package com.wms.service.impl;

import com.wms.entity.RawMaterialArrivalRecord;
import com.wms.mapper.RawMaterialArrivalRecordMapper;
import com.wms.service.RawMaterialArrivalRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RawMaterialArrivalRecordServiceImpl implements RawMaterialArrivalRecordService {
    @Autowired
    RawMaterialArrivalRecordMapper rawMaterialArrivalRecordMapper;
    @Override
    public List<RawMaterialArrivalRecord> getAll() {
        return rawMaterialArrivalRecordMapper.selectAll();
    }

    @Override
    public int changeRawMaterialArrivalRecord(int id,int arrivalNum, String note,int storeAreaId) {
        return rawMaterialArrivalRecordMapper.updateRawMaterialArrivalRecord(id,arrivalNum,note,storeAreaId);
    }
}
